import tabbarItems from '../../common/datas/tabbarItem.js';
import router from '@system.router'

export default {
    data:{
        tabbarItems
    },
    props:{
        index:{
            type: Number,
            default(){
                return 0;
            }
        }
    },
    jump(index){
        switch(index){
                case 0:
                    router.replace({
                        uri:"pages/result/result",
                    });
                    break;
                case 1:
                    router.replace({
                        uri:"pages/detection/detection",
                    });
                    break;
                case 2:
                    router.replace({
                        uri:"pages/mine/mine",
                    });
                    break;
        }
    }
}